<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Assign Driver</title>
<link href="../css/style.css" rel="stylesheet" type="text/css" />
</head>
<SCRIPT type="text/javascript">
		$(function() 
				{ 
			$('#selectDriverButton').click(function() {  
				alert('closing');
				$('#mydialog3').dialog('close');
				window.close(); 
			}); } );
	

	
</SCRIPT>
<body>
 <sj:dialog id="mydialog3"  title="Assign Driver" autoOpen="true">
<sj:div id="asdas" cssClass="maincontent" indicator="indicator">
	<s:form theme="simple" id="driverSelectionForm">
		<s:hidden name="carDTO.id"  id="carDTO.id" value="%{carDTO.id}"/>
		<table width="100%" border="0" align="center" cellpadding="0"
			cellspacing="0" class="gridtable">
			<tr>
				<td><s:select label="Select Member" headerKey="-1"
					headerValue="Select Member" list="availableMembers" listKey="id"
					listValue="name" name="selectedMemberId" /></td>
			</tr>
			<tr>
				<td><sj:submit id= "selectDriverButton" formIds="driverSelectionForm"
					value="Submit" name="Submit" href="retrieveCarAction.action"
					cssClass="btnbg" targets="carExitDiv" indicator="indicator" /> <!--<input type="button" value="Assign Driver"
						name="Assign Driver" onclick="assign()" class="btnbg"/>
			--></td>
			</tr>
		</table>
	</s:form>
	</sj:div>
	</sj:dialog>
</body>
</html>